<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org"
      xmlns:sec="http://www.thymeleaf.org/thymeleaf-extras-springsecurity3">
<head>
    <title>Hello World!</title>
    <link rel="stylesheet" href="https://cdn.bootcss.com/weui/1.1.3/style/weui.min.css">

</head>
<body>

<script src="https://cdn.bootcss.com/jquery/1.11.0/jquery.min.js"></script>

<script th:src="@{/js/auth.js}"></script>

<div class="weui-msg">
    <div class="weui-msg__icon-area"><img id="avatar"></img></div>
    <div class="weui-msg__text-area">
        <h2 class="weui-msg__title">操作成功</h2>
        <p class="weui-msg__desc">请允许
            <span id="nickName"></span>
            执行以下操作<a href="javascript:void(0);">文字链接</a></p>
    </div>
    <div class="weui-msg__opr-area">
        <div class="weui-flex">

            <div class="weui-flex__item">
                <form action="#" th:action="@{/oauth/authorize}" method="post" name="auth" th:object="${authRequest}">
                    <input type="hidden" name="response_type" th:field="*{response_type}"/>
                    <input type="hidden" name="scope" value="read write"/>
                    <input type="hidden" name="client_id" th:field="*{client_id}"/>
                    <input type="hidden" name="user_oauth_approval" value="true">
                    <input type="hidden" name="redirect_uri" th:field="*{redirect_uri}"/>
                    <input type="hidden" name="state" value="09876999"/>

                    <a href="javascript:;" class="weui-btn weui-btn_primary" id="sub">提交</a>

                </form>
            </div>
        </div>
        <div class="weui-flex__item">
            <a href="javascript:;" class="weui-btn weui-btn_default">取消</a>
        </div>
    </div>
</div>
<div class="weui-msg__extra-area">
    <div class="weui-footer">
        <p class="weui-footer__links">
            <a href="javascript:void(0);" class="weui-footer__link">底部链接文本</a>
        </p>
        <p class="weui-footer__text">Copyright © 2008-2016 weui.io</p>
    </div>
</div>

    <script src="https://cdn.bootcss.com/jquery/1.11.0/jquery.min.js"></script>



</body>
</html>
